import {IMock} from './i-mock';
import {MockConfigItem} from '../../entity/mock-config-item';

export class SerializableMock implements IMock {
    getBaseTypeMockConfigDisplay(mockConfigItem: MockConfigItem): string {
        if (mockConfigItem.value) {
            return `'${mockConfigItem.value}'`;
        }
        return `''`;
    }

    onSave(mockConfigItem: MockConfigItem): boolean {
        return true;
    }
}
